#! /usr/bin/perl

@input = reverse(<>);
print @input;